function Turn(data){
	this.id = data.id;
	this.talon_id = data.talon_id;
	this.player_id = data.player_id;
	this.active = data.active;
	this.status = data.status;
	this.turn_id = data.turn_id;
	this.imageFilName = '';
}

Turn.prototype.geCards = function(){
	if(game.id==0){
		alert("game not set");
		return;
	}
	console.log('getRevealedCards-----| game id:'+game.id);
	var getRevealedCardsURL = "index.php?/turn/getRevealedCards";
	$.ajax({
		url:getRevealedCardsURL,
		async:false,
		dataType: 'json',
		success:function(turnCards,status){
		if(turnCards.length==0){
			return;
		}
		$(turnCards).each(function(key,turnCard){
			game.cardsRevealed.push(new Turn(turnCard));
		});
		
	}
	
	}).done(function(){
		console.log('done:getRevealedCards');
	});
}


